import { get, remove } from "@/utils/request";
import { type Comment } from '@/types/content/comment'
/**
 * 获取评论列表 分页
 * @returns
 */
export const queryCommentById = (params: PageParams) => get<PageVo<Comment>>(`/comment/commentList`, params);

/**
 * 删除评论列表
 * @returns
 */
export const removeCommentById = (id: string) => remove(`/comment/${id}`);
export const queryLoveComment = (params: PageParams) => get<PageVo<Comment>>(`/comment/love`, params);
export const queryLinkComment = ( params: PageParams) =>get<PageVo<Comment>>(`/comment/link`,params);

export const queryHoleComment = ( params: PageParams) =>get<PageVo<Comment>>(`/comment/hole`, params);
